Implementing more detailed errors.