Move it to the top of the function