Rewriting the output functions