Add mclogclean function