Simplified disk read/write logic.