Add cmt() function to comdef