Add a panic clause to fix 'missing return' error