Added clustering constraint functions.