Started update of log function