Making R.pcompose() a separate function.