Improved counter alarm, and added better logic