Removes old main function