Initial implementation for output file