Borrow some stuff from Prelude. Clean up broken things.