Porting things from the wiki.