Add auto-regulate version. do_magic() is not functionnal. DEBUG macro are defined in Makefile