Edited listener to add orders.