Added new double compare method