Added code to deal with setting up the board. Not finished.