Add message box when generation is finished.