Slight modification to phys algo