Fixed some bugs. Added MAD zoom.