Added RPG code