Dev

Fixed a bug in the recursive functionality.