PAPI Support

Initial support for PAPI.