Gamma Energy Analysis Not Working