Added quantum_max feature to mt_tbs.

Cuts off execution after quantum_max quanta.