Adding debugging toggle for alerts