Changed constructor and method call for search