Remove useless signal handler bloat.
Polish foreach loop.