Main file streamlined