Removed PermissionManager for now until is done.
Changed some network functions.