Added file output capability