Added singleton and nscoding.