Refactored to use the Workers gem.