Setting up packages to work with IDs.

The tree viewer does not like to work nicely with the selections after
modifications etc.