Added debug messages. Seems to stop sending signals....