See http://wws.princeton.edu/~snkatz/