Added option to set initial value