Tweaked the endpoing registration to use promises