Code for 2.4 added

has to be updated to use array instead of method that checks root depth.