Start creating separate function that affects the lifecycle state -
rarch_main_set_state