Recursive search for all variables