Order logic finished. Hopefully...