Begin TDM support
Add TDM support

Fixes #1