Put the variable declaration in a better location