Writing output locally as well