Added code for handling FileNotFoundException