Implement the 'zoom' function.