Corrected singleton pattern