Fix

Fix the recursion function and adding the parsing for  mdls