Added events for rebuilding in dev mode.