Add register() function to service providers