Uses var for all current variables, so they are in the correct scope