Implemented registerHelper and registerReplacer.