Added functions for board.c