Getting the log to work