Store fence and return points in file instead of parameters