Flex in Subscription History

Does any one out there have a custom procedure for populating Subscription history they would like to share?  I know there's one on task but it was written with an older version of SQL and throws up all sorts of errors about indexes.  I'm afraid I don't know enough to trouble shoot.  Thanks.

 

Chris