Fix the board display issue and add support functions.