Added local file Checking