Added timer and filewriter