Switched to SDL instead. More stable.