Added error() function.