Fixed logging, ignore how it's done, I'm tired it's 2:07am...