Added handler of player events.