Using singleton and checking if prepared