Added: depth parameter to extract function
Added: depth parameter to hydrate function