Made port buffer local