Added output to main file