Logger refactored, zero bug fixed