Wrong location for if, reduce need to recompile.