Add new throws function