Add ctl-core code