Fixing up placeOrder logic.