Permission Engine and Fixes.