added ai_frqmodulo to timscan.c