Car running poorly when cold

Engine running great now. I put a new ECU in and it seems to be just fine. I am going to put the old one back in to see if it wasn't just a grounding problem.