Removed getDepends.  Renamed calc function to state.