Add support for specifying parent container

This updates #33, which has gone stale.