Adding terminal support functions