Updated main ready for recursiveCaptures