Initial implementation of functions.