RunTimer middleware.