Define the variable at the top of the function.