Added depth height code