Improved rendering functions.