Added calculation of contribution