Updated Torch functionally.