Cleaned main.