Made logging a bit more sane. Wasted a lot of time