Changed function name which creats a singleton