Methods to read and write to disk added