Another commit without a logical reason.
Added (copied, mostly) the functionality for the work order. And some other stuff.