Added signal handler