Adding comments, building my own code. Kind of confused where to integrate the alert.