Change disable_functions to a variabl