Moved to trade class.

This file is too big!