Refactored station code, added order matching