Reworked targeting helper functions, added some triggered events