Cleaning main.