Having a weird issue with cold starts. When the motor is first started, timing is at 2-4* and the idle is at 1600rpm. After 5s, timing will jump up to 14* and the idle increases to 2000rpm. This hangs for a bit then starts to settle down.

Can someone step me through how spark gets calculated the first 30s on a cold start? The motor is an LS1/A4(0411 with 12212156 OS) with a cam(226/234 113+2) and stall(yank ss3600). Thanks.