Tweaked the resources script