Refactored the core to use prototypes for chain exports - should be a performance gain.