Added new extension method to add providers