Added pin mode values and random functions.