Now the file that profiles are found from is only set once in one place and the #ifdef statements are inside of the function rather than redefining the same thing multiple times.