Added full support for multiple clusterings.