Add file checks