Move "declare(ticks = 1)" code to common initsignals() function.