The initialization of ONTIMEINTERVAL threads is CB-specific (i.e. IoTAgent doesn't uses ONTIMEINTERVAL thread). Thus, should this be moved to the CB main application?