Compare function added.