Include jstat library
stateDependent helper function
Parameterised number of clusters
Ensure clusters look good and are within bounds