Code for Singletons added.