Add support for replace/append style in print module.

WIP