Stripped down version of n1torch