Added a MaxViewDistance option.