Made one function that will try all 3 import rebuilding functions.