Pass newly created promise to then()