Region Name and endpoint type as parameters - bug fix