PAPI implementation