Use var for variables inside functions.