Moved task processing to Worker