Added support for multiple search patterns

Added support for multiple search patterns at once