Import code from earlier prototypes