Making the grid size configurable and rounding the elapsed time calculation.