Moved THROTTLED_DIRTY bitmask into enum. Fixed some code-style issues.