Added depth magnitude param