Added cacheing to log.