[Core] Adding endif.