Add comments for exec_cmd()