Added overload that allows searching by search pattern