Changed some fmt to log.
Added whitelist mechanism to the worker.