Get rid of thoses loopfunc, close #46