Delphi permission tweaks