Added location visibility calculation.