Add log messages to reference code.