Added serverError function.