Add precison to the pin detection code.