flowtimer initial code