Only set state once.