Should be initialized at the top of the function.