State machine now generates bits 39 to 239 correctly