Adds a more complicated turnstile statemachine