Procedurally generate world in chunks

I recently followed the procedural generation tutorial and everything went well and got it to run exactly as described within the tutorial.

I got interested in procedural generation and how I could make the world size much larger and possibly infinite. I was trying to make the scene load in chunks, I was extremely uncuccessfull and the results of my testing and playing around varied but I couldnt even come close to anything that you could call working.

Is there any way I can modify the original tutorial code to only load a certain amount of tiles at a time lets say 50*50 chunks and load and unload them as I am walking through my world?