Change the unit management using an Decorator that aply an unit atribute to the function. And use the same Settings Dict as configuration object