File Out support

Added version with file output