Added equals() method to avoid duplicates.