Removed unneccessary em.clear().