Changed 'path' type to array from number