Add some minor function in the provider module