Added encryption to worker