Added preliminary potential calculation ability, seems to work.