Modified smart mode line