Function ncols improvements for non-terminal sessions