Modified main file