Adding code for displaying .ctm files