Moved visible range calculation into separate method.