Clean: add all used variable as arguments instead of relying in the module scope. Easier to move to another file.