Removed unused code from Contains