CMPSC optimalisations and enhanced debug msgs