Trying to fix IFs being loaded twice.