Add singleton pattern.