Port the order process code to the Order class. This has not been tested yet.