Added constructor with depth specification.
Fixed.