Working on signal handler