Update torch app to deal with toggles