Added min, max, range functions