Beginnings of Sigma calculation logic