Introduce search in files function & mapping