Missed a break in switch structure. Added .diz extension detection.