Initial (untested) commit for rfposavg
Modified rfposavg