Changed code to use some composite (PAL) examples, now divided loop using inline funcs.