Added register promise not tested