Moved signale handler definition.