Wrote part of PerformOrder method