Hoisting all the variables to the top of the functions