Updated Torch plugin for 2.4