Work in progress on action state machine mechanism