Fixes Issue 30: queue pool limit of size 5 overflow 10 reached

Alternate pull request for #31.

@oyiptong not sure why github is so confused with your pull request. I've rebased your commits on to master so it's only the new changes.