Porting for rgr