Change DEFAULT_PERMISSIONS and also change the functions to get or create the registered and anonymous group. Use one function for both.