A sample implementation of the approach outlined in: http://research.microsoft.com/apps/pubs/default.aspx?id=78197