Remove cast to integer for grid_density and length