Implemented some APG-base stuff in DFC.R