A lot of optimizations and fixed the way events are propagated.