Add template code for active polling of extended PIDs