Adds print functions for debugging.