Functions

Working on it! Pull Requests welcome.