Add debug and system handlers.