Adds background writing/reading.
Fixes line reader parsing bugs.