Trying to add signal handling.