Starting to rewrite fprintf