Added singleton functionality to dependency container