Change to write to io.Writer instead of returning a string