Changed how the resource folder is accessed.