Adding in code to grab certain app events