Adding ref to zsearch