Modified Main File 1 to handle debug option