Building user middleware for timers