Added possibility to set value format.