Add main_is_init conditional