Added the timer and class to do nn.