Added functions for numerical comparison.