Implement get/set XP functions