Adds gamma formula