nit: We should move this state into the class to lessen the count of private variables.