Added check for presence of terminal before display progress percentage