Working on getting etotal from sma