; (E) in subsection (e), as so redesignated, by striking railroad, a person and inserting railroad, an individual, a person ; (F) by striking subsection (g) and inserting the following: (g) Notwithstanding any other provision of this section, no individual or family farmer may be a debtor under this title who has been a debtor in a case pending under this title at any time in the preceding 180 days if the case was dismissed by the court for willful failure of the debtor to abide by orders of the court, or to appear before the court in proper prosecution of the case. ; and (G) by striking subsection (h) and inserting the following: (h) (1) Upon motion of a party in interest or on the court’s own motion, the court may, after notice and a hearing, include in an order dismissing a case under sections 707, 1005, 1053(c), 1112, or 1208 of this title a restriction of the debtor’s eligibility to refile a subsequent case under this title upon a finding of cause, including— (A) willful failure of the debtor to— (i) abide by orders of the court; or (ii) propose a plan required under sections 1021, 1129, or 1225 in good faith and not by any means forbidden by law; (B) willful and substantial default by the debtor with respect to a term of a confirmed plan; (C) a pattern or practice of filing bankruptcy petitions as part of a manifestly improper use of the bankruptcy system; (D) willful failure of the debtor to appear before the court in proper prosecution of the case; or (E) other manifestly improper use of the provisions of this title. (2) The period of ineligibility for a subsequent case— (A) shall extend for 180 days from the date of the entry of the court’s order unless the court orders otherwise