Added support for custom prettifiers.