Hacky CM script

Sorry @cbetta @mseckington @leeky but needs to be done for now.