Implemented function printing.