Implemented fetch by rectangle logic.

Not yet finished, the grid will not be generated.