Improves logging