Reworked potential fields to be more efficient.