Changed common broker code to allow multiple jobs