Added option to set starting state