Add internal, primToIO and primToST