check its a new dizzy cap, if not replace it.
check rotor arm too.
when it wasnt idling was the revs up an down or jus wldnt hold revs?
when u last had it set up? poppin from exhaust is usually it overfuelling slightly maybe an when exhaust heats up u can get it.
battery connections good? hope that may help if not gives more detail