Implemented a better system for trading.