Made needsCompile method static