Added touch tracking code. Needs to be tested on Android.