Made ServiceRegistry a singleton