Append safely.
Merge pull request #17 from robrix/safe-appends

Append safely.