Added Support for KPMF and BPMF in active sampling

Performance is not expected to be good!