Created the basic functions