Added tracking of XP gains.