Changed all instances of fail! to panic!