Generating config loaded event handler.