Throw errors instead of returning a boolean.