Add pattern detector source files