Using constant
Changed the way resources are added
Using constant