Removed additional objects from the main function.