Improved log entry for substitution