Added option to write the value to system properties