Automatic detect the small miners
Minor changes