Add `before initialize` event