Re-wrote all of AMDclean with AMDclean