Created general class for easy dynamic bindings to API.