Add base units to variable dictionary instead of using global