Added a  signal receiver function to the modules file.