Fixes #10 by adding a hook for when the indexes change.