This function raises errors as well.