Implement search command