Added padding and fixed crash in Logger.