Making Dalert Code Neat