Updated "search" method.