Added optional options object to getWork. In that object, there is current support for a maxJobs attribute