Fix declaration of ticks to handle signals