Added support for presets
added example