Transformed ManageSignals into a function (not a method)