Main loop actions working