Added timer and random seed