Added exception handling incase file does not exist