Add leaf and root options to profile.
Avoid adding/removing attrs.
Don't run regexes unless there's a chance they'll match.