Adds singleton pattern