Search implementation.