Delayed write.

Closes #364.
Closes #359.
Closes #358.
Closes #107.
Closes #4.