Added missing end extern