Compile with CMake
Added affixes criteria
Added begin/endings criteria