First commit of some functions.