IRQ RPCs and fixed some memory leaks (but there are many to go :D)