iceState and context_ are not initialized in the constructor.  Also move some stuff that's initialized in the constructor manually.