Added in min, max, regex functions.