Made theta_pmp elevation dependent