Changed Datamanager so it handles bags