Finish lexical scoping and add time data.