Adding permission and role persistence, and default values.