Wide range of tweaks. Working on window events.