Modified script to build worker queue pooler