First step for resource compilation