Workign with file output