Added lazy compiling to log too.