May as well spread these last var declarations throughout the function, where they're actually used.