Take all time functionw out of cube core and into the statelog.