Added handling of edge-parallel momentum.