Moved function for blocking signals to the util section