NewWorkServer add code.

Still need to be modified.