Handling event and head changes in a slightly more graceful way.