Support for xPermissions (needs more testing)