Fixed Depth recursion problem