Made search pattern configurable