Added sample search function