Added a necessary throws.