Made promises to optional parameter, instead of variable.