Update worker to support reading environment