In Canada, insolvency proceedings are governed primarily by the Bankruptcy and Insolvency Act (BIA) and the Companies' Creditors Arrangement Act (CCAA). The BIA is a self-contained code that deals with the liquidation of assets in a bankruptcy either where a bankruptcy trustee is appointed voluntarily or where a creditor seeks a bankruptcy order. Various sections in the BIA, including in particular sections 65 and 246.1, deal with licensing agreements. In CCAA proceedings, which are used by larger businesses seeking to restructure their debt, the key CCAA provisions are sections 11, 32 and 36. Notably, whereas a stay of a debtor's obligations is automatic under the BIA, a court has more discretion in CCAA proceedings.