Changed main program