Added time calculations.