Change TMS implementation to fix missing distributions like half-way BB.