Add output file and stuff