Add pfun: create private function