Added depth parameter to read()