Added a few functions to board.c.