Adding additional arguments to derive consumption and set demandInterval