Initial code extraction from Menpo