Fixed slowess. :( I'm rusty in C++