Changes to xp.lua