Trying to debug error with depth = 4