Implements worker queue. Fixes #6.