Add 'hack' function + correct major bug in domain computation (now 21000 time faster...)