Completely changed the interrupt bind system. Tested and working.
There is a problem with the avr scheduler. See tests/scheduler.