Updated references and moved the log.