Improves detection of expressions in interactive mode.