Removed Worker class in favor of a lambda capturing this