Bug fixes and DoEvents.