Input files handling