Remove history permission, use regex
Remove RES placeholders.