New state machine for Windows