All 3 of these variables are only used within this function's scope, so they should be declared within this function, not at the top of the module.