Adding assertion in execute command in the core