Add wraper around hack and pass root and var size upstream