Stripped from all unnecessary things and restructured, core framework