Fixed up some stuff; added message box control.