Updating the bursting query to accept the PI parameter