Added utilities to query mechanimso query mechanism.