Added search contract implementation.

Added search contract implementation.