Added error as the second paramater.