Added error exceptions.