[CORE] Add basic block creation when needed