Made amdclean more compatible