Declare variables at the top, as requested.