Update parameters and create states