Added multi-level signal handlers.