Main file simplified