New device could more accurately detect potentially harmful compounds in beer.