Modified timing with build grid function.