Better way of determining the zoom level