Changed depth to 1 index, from 0 index