Rewrite base code, setup delay variables for easy flicker control, write delay array