State machine now checks a pass_states enum instead of non-descriptive ints