Removed irrelevant code in Main program.