Added method to set the used Promise library