Working on clustering functionality.