Use PromiseResult instead of char for promise outcome status in more functions