Added panning and zooming.