Added zoomAndCenter functionality.