Added error cases for when a necessary file does not exist within the working directory.