Improve built-in print function.