It would be good if this had a callback function that was called when the function completes and passes in the bundles