Changed implementation of point source position calculation.