Removed dead code.
Added another task ordering rule.