Set up global variables for timeline