Feature/ bag support

To enable multibag feature.