Cleaned main file