Adding locations Parameter to Pass is too static

The locations Parameter is an Array so it would be better to use it with the add function. So dynamically locations can be added!