Updated cpp fwdControl to use R class