Could we define this variable at the top of the function?