Added some variables to the ema class.