Updated to fix async reads/writes.