Added handling for Corrupted Files