Bug sorted and syntax amended to pass vector name as character.