Added "Check files" function