Please group all vars at the top of the function.