Allow x^p==y^z in GP (allow two terms if constant is zero)