Fixed the integral problem by putting the cached value code into the statemachine, we can probably get rid of the cachedSignal class now