Add resources and basic codes