Numerous concurrency bugs.  Fixed modular input output.