On some engines a sticking variable valve timing valve can cause  the Check Engine light (MIL) to illuminate. Replacing the valve and a software update will address this issue.