Added player_on and player_off events to the PIM block