Enter main loop