[WIP] State machine & launcher