Modified the log command