Moved zoom adjustments to a variable