Better handling of user permissions.