Began signal handler code