Nesi grid selection (unfinished module from my summer project)