Added prepare for cluster function for integration