Made occlusion check limit configurable.