Repaired zoom functionality that I accidentally broke during refactoring.