Added a permit-root flag for root execution