Finished some functions, and function classes.