Adding support for depth and strictDepth