Starting to put bd in worker.js and ONLY in worker.js