Added methods in discovery to clear the inputs ifs at the end of execute