More advanced search for variables