Latest version with working irqs but bad timer