Added timer and animation based on timer