Added ctrl state logic to get the core running.