Added timer and log