Change S_sigma to P_sigma, update finding kinks