Added signal handler for SIGUSR1