Changed error types.