Added the possibility to specify the type of objects to be searched, "object" is now default to filter out variants.