Blackmagic script fix
Timer IRQ fix; more runtime checks