Added error handling for non-PNC filenames