Start to implement collect matches in file