Added end event and warning about memory consumption