-Tried some more optimizations, but it is still not fast enough. Gonna try again some other day...