Added length command to extend to photon propagation