Support for package slots

Fixes #40