Replaced fail with panic macro