Main loop utils added