Reworked all logging. It was a mess.