modified Timer.c