Changing to use Set instead of Map internally for 'owned' status.
Removing unused 'pkg' arguments.
Removing unnecessary thrown exception declarations.
Removing more unnecessary thrown exception declarations.