Removed the use of errors.New for fmt.Errorf