Refactored appender.