Restored removed read/write calls.