Organized main file