Added a main program