GenerateRPD working