Added a tolerance parameter for numeric comparsions