Removed unnecessary maximization over phase and distance from run.py