Performance improvements

Function that adds all function in a module to the depth control list