Added rudimentary support for touch devices.