Making condition clustering callable as functino so that it may be distributed.