Implemented proper setting of sheath potential.