Added variables to control view load/unload distance.