There are several ways a contractual obligation can terminate, including performance, agreement, breach, frustration, or operation of law. A contract can be discharged through full or attempted performance, novation, rescission, alteration, remission, waiver, or merger. Impossibility of performance can discharge a contract if the impossibility was unknown or unforeseen, or due to changes in law or outbreak of war. A contract's obligations can also end through lapse of time if no legal action is taken within the limitation period, or due to death, insolvency, unauthorized alterations or rights vesting in one person. Breach can be actual if at the due time or during performance, or anticipatory if declared before performance