ct: Add some code and documentation.