Add cluster function to make full use of the cpus.