Added new compare function - in