Define th enew function in a closure, and just assign it every time.