Improved privilege management