Moved initialization of ion class.