Modified how the log works