Added wildcard permission support. Removed Debug.