Replaced fail! with panic!