Minor refactoring of character import.
Moved character import into signal handler.