Fix log statements and complication errors.