Added missing file checks