Minor style change in bin detect function