Updated to match latest panic syntax