Implement sample searching