Added the die() and dice() functions.