Adding in the functions