Move this to a service provider or something..