Update.

The remained task is to compute the num of components.