Update timebase and index code