Small modifications made to allow the MAC address to be set.
This must be done before calls to any other function.