Added in enforcement of the singleton pattern.