Added error function.