Added support for stylus