Adding cap touch code by request of Tejas.