Added multiple item depth and did some refactoring too
removed debug query