Minimal changes to allow for CMSMS 2.x compatiblity
Minor code cleanup.