Added torch and changed flag