Fixed the add order function. Should now work.