Disabled showing of alerts when in run mode (to prevent false
positives). Some small code improvements.