Added much-needed file output