Initial implementation of DC and MTF with basic tests.