Removed unecessary things from main.