Broke up the large conditional blocks so it is easy to see if a function is compiled.