Added functionality to update the timeline