added an option to specify initial values