* Added a main loop