Added Random access capabilities for writing to data file.