Removed old code from the main.