Recursive variable handling implemented