Bugfix endless alarm, logging