Added realms to the API wrapper.