Add support for preset options

- Fix sprintf syntax bug