Moving these variables outside of the "input" function so they can be reused across fields.