Got promises setup abstracted from code