Updating mclogclean function