Fixed segment partitioning and logged elapsed time.