Added the ability to choose a API domain