There's a problem with the affinity law application; this still needs some work.