Potential calculation implemented