Created the initial functions