Move the position of the message box definition near related functions.