Added error message box.