Fixed orderMessages so that it does not instantiate an arraylist until
it is needed.