Finish initial porting.