Working on R interface back end.