Used .put instead of append syntax for appender, which sometimes works better.