Better implementation of the zooming.