Functions library for stylus