Added more functions to worker protocol module.