Add worker code for running bundles