Updated contains() and overrode it.