Provided code and demo for the CIM paper.