Add input retrieval and further logic.
Add more CDM functions.