Potential timing fix for read and write.

Fixes #27