Added support for saving XP on death