Added support for Touch devices.