Removed unnecessary pointers in main method.