Added script methods for log.