Overlay support, fix for crashes after an arbitrary amount of time has
elapsed caused by buffer overflow. Many other fixes.