Added zoom event; removed debug function