Changed trade logic to hopefully work better.