Added a setting for making the grid wrap