Cleaned code and rules.