Added timer and some comments.