Adding dynamic pin detection.