1. Add debug flag to AS.  2. Experiment with irq-handler.