The car appeared to have lost power, not while entering the freeway. I pressed on the gas, but it made a loud sound and barely moved. I then saw smoke, pulled over and the car cut off. The car continued to smoke. I opened the hood, and it was a fire under it. Prior to driving, the check engine light was on.