Prettify attack handler code