Added implementation for representation search.