Add check for privileges. Move check to after argument processing.