UpdateRules()
parseDefFromFile()
This will reduce the length of this function and thus improves the readability.