Added state machine, AppLauncher added (not implemented yet).