Only write to file when there is content.
Build 0.1.2