Add basic CMI dump logic
Finished basic script logic