Added general tools to fix functions to load num from file