Porting more functions.