Convert to singleton pattern.