Added more granularity to PSInvoke stats.