Adding onframetoolarge event. Corrected potential memory consumption DoS.