Implemented zoom behavior.