Updated permissions and user handling.