Visibility checker now takes a maximum distance.