Started implementing file output