Updated ruleBased4