Wrap long line
Move file validation to separate method