Getting to good state before branch