Added safety check to Psi initialization.