Added capacitive touch code