Added support for precision option, fixes #10