Updating permission saving routine